package org.elanfox.intellicommunity.common.ienum;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.elanfox.intellicommunity.common.ienum.base.CodeDescCommonEnum;

/**
 * @author allan
 * @version 1.0.0
 * @date 2019/12/20
 */
public interface UserEnums {
    enum Type implements CodeDescCommonEnum {
        RESIDENT(0, "住户"),
        WORKER(1, "特殊监管");

        private Integer code;
        private String desc;

        Type(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        @Override
        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        @Override
        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    @AllArgsConstructor
    @Getter
    enum Feature implements CodeDescCommonEnum {
        NORMAL(0, "正常"),
        ALZHEIMER(1, "");

        private Integer code;
        private String desc;
    }
}
